
my_str = "itheima itcast boxuegu"

count = my_str.count("it")
print(f"字符串{my_str}中有{count}个it字符")

new_str = my_str.replace( " ","|")
print(f"字符串{my_str}，被替换空格后，结果：{new_str}")

new2_str = new_str.split("|")
print(f"字符串{new_str}，按照|分隔后，得到{new2_str}")